function ChangeColor() {
	if (localStorage.color) {
		$('body').css('background-color', localStorage.color);
		$('.bg').css('background-color', localStorage.color)
	};
	if (localStorage.bg) {
		$('body').css('background-image', 'url(img/bg/' + localStorage.bg + '.png)')
	}
};
$(function() {
	ChangeColor();
	$("div[id^='app'] img").click(function() {
		window.location = 'app/' + $(this).attr('app')
	});
	$('.color').click(function() {
		localStorage.color = $(this).attr('color');
		localStorage.bg = $(this).attr('bg');
		ChangeColor()
	})
});